/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lvyh.lightframe.cloud.uaa.model;

import lombok.Data;

@Data
public class Client {
    private static final long serialVersionUID = -8185413579135897885L;

    private String clientId;
    private String clientName;//应用名称
    private String resourceIds = "";
    private String clientSecret;
    private String clientSecretStr;
    private String scope = "all";
    private String authorizedGrantTypes = "authorization_code,password,refresh_token,client_credentials";
    private String webServerRedirectUri;
    private String authorities = "";

    private Integer accessTokenValiditySeconds = 18000;//access_token_validity
    private Integer refreshTokenValiditySeconds = 28800; //refresh_token_validity
    private String additionalInformation = "{}";
    private String autoapprove = "true";
    private Boolean supportIdToken = true;//是否支持id_token
    private Integer idTokenValiditySeconds = 60;//id_token_validity-id_token有效时间(s)
}
